package com.gitee.wsl.mathematics.vector

import com.gitee.wsl.mathematics.vector.vec2.Vec2f
import com.gitee.wsl.mathematics.vector.vec3.Vec3f
import com.gitee.wsl.mathematics.vector.vec4.Vec4f
import kotlin.test.Test
import kotlin.test.assertEquals

class NegateTest {
    @Test
    fun vec2_negate_newVec() = assertEquals(1f, 2f, -Vec2f(-1f, -2f))

    @Test
    fun vec3_negate_newVec() = assertEquals(1f, 2f, 3f, -Vec3f(-1f, -2f, -3f))

    @Test
    fun vec4_negate_newVec() = assertEquals(1f, 2f, 3f, 4f, -Vec4f(-1f, -2f, -3f, -4f))

}